﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Kugar.Core.Configuration;
using Kugar.Core.ExtMethod;

namespace Kugar.ERPFramework.View.WinForm
{
    public partial class ServerConnectFrm : ModuleFormBase
    {
        public ServerConnectFrm()
        {
            InitializeComponent();
        }

        private void ServerConnectFrm_Load(object sender, EventArgs e)
        {
            var host = CustomConfigManager.Default.AppSettings.GetValueByName("LastHost");
            var lastKey = CustomConfigManager.Default.AppSettings.GetValueByName("LastKey");

            txtServerHostAddress.Text = host.ToStringEx();
            txtServerKey.Text = lastKey.ToStringEx();

            tabProjectSelect.Enabled = false;
        }

        private object connectServer(string hostAddr, string key)
        {
            
        }

        private void RefreshProject()
        {
            
        }

        private void RefreshProjectInstance(string projectID)
        {
            
        }
    }
}
